function rob(nums: number[]): number {
    let ans: number = 0

    return ans
};

const nums: number[] = [5,7,9,3,1,10]
console.log(rob(nums))